﻿using Microsoft.Practices.Unity;
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace Medhurst.Unity.Examples.Plugins
{
    public sealed class Plugin2 : IPlugin
    {
        public void Start()
        {
            // do nothing
        }

        public void Stop()
        {
            // do nothing
        }

        //== Properties that Unity fill in for us automaticall from behaviours.yaml ==//

        [Dependency]
        [Description("Shows how to feed a string property from behaviours.yaml")]
        public string StringProperty { get; set; }

        [Dependency]
        [Description("Shows how to feed a numeric property from behaviours.yaml")]
        public int NumericProperty { get; set; }

        [Dependency]
        [Description("Shows how to feed a floating point numberic property from behaviours.yaml")]
        public float FloatProperty { get; set; }

        [Dependency]
        [Description("Shows how to feed complex properties using TypeConverters from behaviours.yaml")]
        public NameValueCollection NameValueProperty { get; set; }
    }
}
